package com.chuangke.login.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class LoginConfig {

	@Value("${login.one-time-only-one-login}")
	public boolean oneTimeOnlyOneLogin;

	@Value("${login.failed_retry_times}")
	public int failedRetryTimes;

	@Value("${login.open_aptcha}")
	private boolean openCaptcha;
	
	@Value("${login.open-pass-login}")
	private boolean openPassLogin;
	
	public boolean isOneTimeOnlyOneLogin() {
		return oneTimeOnlyOneLogin;
	}

	public void setOneTimeOnlyOneLogin(boolean oneTimeOnlyOneLogin) {
		this.oneTimeOnlyOneLogin = oneTimeOnlyOneLogin;
	}

	public int getFailedRetryTimes() {
		return failedRetryTimes;
	}

	public void setFailedRetryTimes(int failedRetryTimes) {
		this.failedRetryTimes = failedRetryTimes;
	}

	public boolean isOpenCaptcha() {
		return openCaptcha;
	}

	public void setOpenCaptcha(boolean openCaptcha) {
		this.openCaptcha = openCaptcha;
	}

	public boolean isOpenPassLogin() {
		return openPassLogin;
	}

	public void setOpenPassLogin(boolean openPassLogin) {
		this.openPassLogin = openPassLogin;
	}

}
